from utils.db import load_json_data


class Course:
    def __init__(self, code, course_name, credit):
        self.code = code
        self.course_name = course_name
        self.credit = credit

    @property
    def to_dict(self):
        return self.__dict__

